home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / websrvcs / nsIWSDL.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  24KB  |  683 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIWSDL.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIWSDL_h__
  6. #define __gen_nsIWSDL_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. #ifndef __gen_nsISchema_h__
  14. #include "nsISchema.h"
  15. #endif
  16.  
  17. /* For IDL files that don't want to include root IDL files. */
  18. #ifndef NS_NO_VTABLE
  19. #define NS_NO_VTABLE
  20. #endif
  21. class nsIWSDLBinding; /* forward declaration */
  22.  
  23. class nsIWSDLPort; /* forward declaration */
  24.  
  25. class nsIWSDLOperation; /* forward declaration */
  26.  
  27. class nsIWSDLMessage; /* forward declaration */
  28.  
  29. class nsIWSDLPart; /* forward declaration */
  30.  
  31. class nsIDOMElement; /* forward declaration */
  32.  
  33.  
  34. /* starting interface:    nsIWSDLPort */
  35. #define NS_IWSDLPORT_IID_STR "0458dac1-65de-11d5-9b42-00104bdf5339"
  36.  
  37. #define NS_IWSDLPORT_IID \
  38.   {0x0458dac1, 0x65de, 0x11d5, \
  39.     { 0x9b, 0x42, 0x00, 0x10, 0x4b, 0xdf, 0x53, 0x39 }}
  40.  
  41. class NS_NO_VTABLE nsIWSDLPort : public nsISupports {
  42.  public: 
  43.  
  44.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IWSDLPORT_IID)
  45.  
  46.   /* readonly attribute AString name; */
  47.   NS_IMETHOD GetName(nsAString & aName) = 0;
  48.  
  49.   /* readonly attribute nsIDOMElement documentation; */
  50.   NS_IMETHOD GetDocumentation(nsIDOMElement * *aDocumentation) = 0;
  51.  
  52.   /* readonly attribute nsIWSDLBinding binding; */
  53.   NS_IMETHOD GetBinding(nsIWSDLBinding * *aBinding) = 0;
  54.  
  55.   /* readonly attribute PRUint32 operationCount; */
  56.   NS_IMETHOD GetOperationCount(PRUint32 *aOperationCount) = 0;
  57.  
  58.   /* nsIWSDLOperation getOperation (in PRUint32 index); */
  59.   NS_IMETHOD GetOperation(PRUint32 index, nsIWSDLOperation **_retval) = 0;
  60.  
  61.   /* nsIWSDLOperation getOperationByName (in AString name); */
  62.   NS_IMETHOD GetOperationByName(const nsAString & name, nsIWSDLOperation **_retval) = 0;
  63.  
  64. };
  65.  
  66. /* Use this macro when declaring classes that implement this interface. */
  67. #define NS_DECL_NSIWSDLPORT \
  68.   NS_IMETHOD GetName(nsAString & aName); \
  69.   NS_IMETHOD GetDocumentation(nsIDOMElement * *aDocumentation); \
  70.   NS_IMETHOD GetBinding(nsIWSDLBinding * *aBinding); \
  71.   NS_IMETHOD GetOperationCount(PRUint32 *aOperationCount); \
  72.   NS_IMETHOD GetOperation(PRUint32 index, nsIWSDLOperation **_retval); \
  73.   NS_IMETHOD GetOperationByName(const nsAString & name, nsIWSDLOperation **_retval); 
  74.  
  75. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  76. #define NS_FORWARD_NSIWSDLPORT(_to) \
  77.   NS_IMETHOD GetName(nsAString & aName) { return _to GetName(aName); } \
  78.   NS_IMETHOD GetDocumentation(nsIDOMElement * *aDocumentation) { return _to GetDocumentation(aDocumentation); } \
  79.   NS_IMETHOD GetBinding(nsIWSDLBinding * *aBinding) { return _to GetBinding(aBinding); } \
  80.   NS_IMETHOD GetOperationCount(PRUint32 *aOperationCount) { return _to GetOperationCount(aOperationCount); } \
  81.   NS_IMETHOD GetOperation(PRUint32 index, nsIWSDLOperation **_retval) { return _to GetOperation(index, _retval); } \
  82.   NS_IMETHOD GetOperationByName(const nsAString & name, nsIWSDLOperation **_retval) { return _to GetOperationByName(name, _retval); } 
  83.  
  84. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  85. #define NS_FORWARD_SAFE_NSIWSDLPORT(_to) \
  86.   NS_IMETHOD GetName(nsAString & aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
  87.   NS_IMETHOD GetDocumentation(nsIDOMElement * *aDocumentation) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDocumentation(aDocumentation); } \
  88.   NS_IMETHOD GetBinding(nsIWSDLBinding * *aBinding) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBinding(aBinding); } \
  89.   NS_IMETHOD GetOperationCount(PRUint32 *aOperationCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOperationCount(aOperationCount); } \
  90.   NS_IMETHOD GetOperation(PRUint32 index, nsIWSDLOperation **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOperation(index, _retval); } \
  91.   NS_IMETHOD GetOperationByName(const nsAString & name, nsIWSDLOperation **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOperationByName(name, _retval); } 
  92.  
  93. #if 0
  94. /* Use the code below as a template for the implementation class for this interface. */
  95.  
  96. /* Header file */
  97. class nsWSDLPort : public nsIWSDLPort
  98. {
  99. public:
  100.   NS_DECL_ISUPPORTS
  101.   NS_DECL_NSIWSDLPORT
  102.  
  103.   nsWSDLPort();
  104.  
  105. private:
  106.   ~nsWSDLPort();
  107.  
  108. protected:
  109.   /* additional members */
  110. };
  111.  
  112. /* Implementation file */
  113. NS_IMPL_ISUPPORTS1(nsWSDLPort, nsIWSDLPort)
  114.  
  115. nsWSDLPort::nsWSDLPort()
  116. {
  117.   /* member initializers and constructor code */
  118. }
  119.  
  120. nsWSDLPort::~nsWSDLPort()
  121. {
  122.   /* destructor code */
  123. }
  124.  
  125. /* readonly attribute AString name; */
  126. NS_IMETHODIMP nsWSDLPort::GetName(nsAString & aName)
  127. {
  128.     return NS_ERROR_NOT_IMPLEMENTED;
  129. }
  130.  
  131. /* readonly attribute nsIDOMElement documentation; */
  132. NS_IMETHODIMP nsWSDLPort::GetDocumentation(nsIDOMElement * *aDocumentation)
  133. {
  134.     return NS_ERROR_NOT_IMPLEMENTED;
  135. }
  136.  
  137. /* readonly attribute nsIWSDLBinding binding; */
  138. NS_IMETHODIMP nsWSDLPort::GetBinding(nsIWSDLBinding * *aBinding)
  139. {
  140.     return NS_ERROR_NOT_IMPLEMENTED;
  141. }
  142.  
  143. /* readonly attribute PRUint32 operationCount; */
  144. NS_IMETHODIMP nsWSDLPort::GetOperationCount(PRUint32 *aOperationCount)
  145. {
  146.     return NS_ERROR_NOT_IMPLEMENTED;
  147. }
  148.  
  149. /* nsIWSDLOperation getOperation (in PRUint32 index); */
  150. NS_IMETHODIMP nsWSDLPort::GetOperation(PRUint32 index, nsIWSDLOperation **_retval)
  151. {
  152.     return NS_ERROR_NOT_IMPLEMENTED;
  153. }
  154.  
  155. /* nsIWSDLOperation getOperationByName (in AString name); */
  156. NS_IMETHODIMP nsWSDLPort::GetOperationByName(const nsAString & name, nsIWSDLOperation **_retval)
  157. {
  158.     return NS_ERROR_NOT_IMPLEMENTED;
  159. }
  160.  
  161. /* End of implementation class template. */
  162. #endif
  163.  
  164.  
  165. /* starting interface:    nsIWSDLOperation */
  166. #define NS_IWSDLOPERATION_IID_STR "0458dac2-65de-11d5-9b42-00104bdf5339"
  167.  
  168. #define NS_IWSDLOPERATION_IID \
  169.   {0x0458dac2, 0x65de, 0x11d5, \
  170.     { 0x9b, 0x42, 0x00, 0x10, 0x4b, 0xdf, 0x53, 0x39 }}
  171.  
  172. class NS_NO_VTABLE nsIWSDLOperation : public nsISupports {
  173.  public: 
  174.  
  175.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IWSDLOPERATION_IID)
  176.  
  177.   /* readonly attribute AString name; */
  178.   NS_IMETHOD GetName(nsAString & aName) = 0;
  179.  
  180.   /* readonly attribute nsIDOMElement documentation; */
  181.   NS_IMETHOD GetDocumentation(nsIDOMElement * *aDocumentation) = 0;
  182.  
  183.   /* readonly attribute nsIWSDLBinding binding; */
  184.   NS_IMETHOD GetBinding(nsIWSDLBinding * *aBinding) = 0;
  185.  
  186.   /* readonly attribute nsIWSDLMessage input; */
  187.   NS_IMETHOD GetInput(nsIWSDLMessage * *aInput) = 0;
  188.  
  189.   /* readonly attribute nsIWSDLMessage output; */
  190.   NS_IMETHOD GetOutput(nsIWSDLMessage * *aOutput) = 0;
  191.  
  192.   /* readonly attribute PRUint32 faultCount; */
  193.   NS_IMETHOD GetFaultCount(PRUint32 *aFaultCount) = 0;
  194.  
  195.   /* nsIWSDLMessage getFault (in PRUint32 index); */
  196.   NS_IMETHOD GetFault(PRUint32 index, nsIWSDLMessage **_retval) = 0;
  197.  
  198.   /* readonly attribute PRUint32 parameterOrderCount; */
  199.   NS_IMETHOD GetParameterOrderCount(PRUint32 *aParameterOrderCount) = 0;
  200.  
  201.   /* AString getParameter (in PRUint32 index); */
  202.   NS_IMETHOD GetParameter(PRUint32 index, nsAString & _retval) = 0;
  203.  
  204.   /* PRUint32 getParameterIndex (in AString name); */
  205.   NS_IMETHOD GetParameterIndex(const nsAString & name, PRUint32 *_retval) = 0;
  206.  
  207. };
  208.  
  209. /* Use this macro when declaring classes that implement this interface. */
  210. #define NS_DECL_NSIWSDLOPERATION \
  211.   NS_IMETHOD GetName(nsAString & aName); \
  212.   NS_IMETHOD GetDocumentation(nsIDOMElement * *aDocumentation); \
  213.   NS_IMETHOD GetBinding(nsIWSDLBinding * *aBinding); \
  214.   NS_IMETHOD GetInput(nsIWSDLMessage * *aInput); \
  215.   NS_IMETHOD GetOutput(nsIWSDLMessage * *aOutput); \
  216.   NS_IMETHOD GetFaultCount(PRUint32 *aFaultCount); \
  217.   NS_IMETHOD GetFault(PRUint32 index, nsIWSDLMessage **_retval); \
  218.   NS_IMETHOD GetParameterOrderCount(PRUint32 *aParameterOrderCount); \
  219.   NS_IMETHOD GetParameter(PRUint32 index, nsAString & _retval); \
  220.   NS_IMETHOD GetParameterIndex(const nsAString & name, PRUint32 *_retval); 
  221.  
  222. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  223. #define NS_FORWARD_NSIWSDLOPERATION(_to) \
  224.   NS_IMETHOD GetName(nsAString & aName) { return _to GetName(aName); } \
  225.   NS_IMETHOD GetDocumentation(nsIDOMElement * *aDocumentation) { return _to GetDocumentation(aDocumentation); } \
  226.   NS_IMETHOD GetBinding(nsIWSDLBinding * *aBinding) { return _to GetBinding(aBinding); } \
  227.   NS_IMETHOD GetInput(nsIWSDLMessage * *aInput) { return _to GetInput(aInput); } \
  228.   NS_IMETHOD GetOutput(nsIWSDLMessage * *aOutput) { return _to GetOutput(aOutput); } \
  229.   NS_IMETHOD GetFaultCount(PRUint32 *aFaultCount) { return _to GetFaultCount(aFaultCount); } \
  230.   NS_IMETHOD GetFault(PRUint32 index, nsIWSDLMessage **_retval) { return _to GetFault(index, _retval); } \
  231.   NS_IMETHOD GetParameterOrderCount(PRUint32 *aParameterOrderCount) { return _to GetParameterOrderCount(aParameterOrderCount); } \
  232.   NS_IMETHOD GetParameter(PRUint32 index, nsAString & _retval) { return _to GetParameter(index, _retval); } \
  233.   NS_IMETHOD GetParameterIndex(const nsAString & name, PRUint32 *_retval) { return _to GetParameterIndex(name, _retval); } 
  234.  
  235. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  236. #define NS_FORWARD_SAFE_NSIWSDLOPERATION(_to) \
  237.   NS_IMETHOD GetName(nsAString & aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
  238.   NS_IMETHOD GetDocumentation(nsIDOMElement * *aDocumentation) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDocumentation(aDocumentation); } \
  239.   NS_IMETHOD GetBinding(nsIWSDLBinding * *aBinding) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBinding(aBinding); } \
  240.   NS_IMETHOD GetInput(nsIWSDLMessage * *aInput) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInput(aInput); } \
  241.   NS_IMETHOD GetOutput(nsIWSDLMessage * *aOutput) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOutput(aOutput); } \
  242.   NS_IMETHOD GetFaultCount(PRUint32 *aFaultCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFaultCount(aFaultCount); } \
  243.   NS_IMETHOD GetFault(PRUint32 index, nsIWSDLMessage **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFault(index, _retval); } \
  244.   NS_IMETHOD GetParameterOrderCount(PRUint32 *aParameterOrderCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParameterOrderCount(aParameterOrderCount); } \
  245.   NS_IMETHOD GetParameter(PRUint32 index, nsAString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParameter(index, _retval); } \
  246.   NS_IMETHOD GetParameterIndex(const nsAString & name, PRUint32 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParameterIndex(name, _retval); } 
  247.  
  248. #if 0
  249. /* Use the code below as a template for the implementation class for this interface. */
  250.  
  251. /* Header file */
  252. class nsWSDLOperation : public nsIWSDLOperation
  253. {
  254. public:
  255.   NS_DECL_ISUPPORTS
  256.   NS_DECL_NSIWSDLOPERATION
  257.  
  258.   nsWSDLOperation();
  259.  
  260. private:
  261.   ~nsWSDLOperation();
  262.  
  263. protected:
  264.   /* additional members */
  265. };
  266.  
  267. /* Implementation file */
  268. NS_IMPL_ISUPPORTS1(nsWSDLOperation, nsIWSDLOperation)
  269.  
  270. nsWSDLOperation::nsWSDLOperation()
  271. {
  272.   /* member initializers and constructor code */
  273. }
  274.  
  275. nsWSDLOperation::~nsWSDLOperation()
  276. {
  277.   /* destructor code */
  278. }
  279.  
  280. /* readonly attribute AString name; */
  281. NS_IMETHODIMP nsWSDLOperation::GetName(nsAString & aName)
  282. {
  283.     return NS_ERROR_NOT_IMPLEMENTED;
  284. }
  285.  
  286. /* readonly attribute nsIDOMElement documentation; */
  287. NS_IMETHODIMP nsWSDLOperation::GetDocumentation(nsIDOMElement * *aDocumentation)
  288. {
  289.     return NS_ERROR_NOT_IMPLEMENTED;
  290. }
  291.  
  292. /* readonly attribute nsIWSDLBinding binding; */
  293. NS_IMETHODIMP nsWSDLOperation::GetBinding(nsIWSDLBinding * *aBinding)
  294. {
  295.     return NS_ERROR_NOT_IMPLEMENTED;
  296. }
  297.  
  298. /* readonly attribute nsIWSDLMessage input; */
  299. NS_IMETHODIMP nsWSDLOperation::GetInput(nsIWSDLMessage * *aInput)
  300. {
  301.     return NS_ERROR_NOT_IMPLEMENTED;
  302. }
  303.  
  304. /* readonly attribute nsIWSDLMessage output; */
  305. NS_IMETHODIMP nsWSDLOperation::GetOutput(nsIWSDLMessage * *aOutput)
  306. {
  307.     return NS_ERROR_NOT_IMPLEMENTED;
  308. }
  309.  
  310. /* readonly attribute PRUint32 faultCount; */
  311. NS_IMETHODIMP nsWSDLOperation::GetFaultCount(PRUint32 *aFaultCount)
  312. {
  313.     return NS_ERROR_NOT_IMPLEMENTED;
  314. }
  315.  
  316. /* nsIWSDLMessage getFault (in PRUint32 index); */
  317. NS_IMETHODIMP nsWSDLOperation::GetFault(PRUint32 index, nsIWSDLMessage **_retval)
  318. {
  319.     return NS_ERROR_NOT_IMPLEMENTED;
  320. }
  321.  
  322. /* readonly attribute PRUint32 parameterOrderCount; */
  323. NS_IMETHODIMP nsWSDLOperation::GetParameterOrderCount(PRUint32 *aParameterOrderCount)
  324. {
  325.     return NS_ERROR_NOT_IMPLEMENTED;
  326. }
  327.  
  328. /* AString getParameter (in PRUint32 index); */
  329. NS_IMETHODIMP nsWSDLOperation::GetParameter(PRUint32 index, nsAString & _retval)
  330. {
  331.     return NS_ERROR_NOT_IMPLEMENTED;
  332. }
  333.  
  334. /* PRUint32 getParameterIndex (in AString name); */
  335. NS_IMETHODIMP nsWSDLOperation::GetParameterIndex(const nsAString & name, PRUint32 *_retval)
  336. {
  337.     return NS_ERROR_NOT_IMPLEMENTED;
  338. }
  339.  
  340. /* End of implementation class template. */
  341. #endif
  342.  
  343.  
  344. /* starting interface:    nsIWSDLMessage */
  345. #define NS_IWSDLMESSAGE_IID_STR "0458dac3-65de-11d5-9b42-00104bdf5339"
  346.  
  347. #define NS_IWSDLMESSAGE_IID \
  348.   {0x0458dac3, 0x65de, 0x11d5, \
  349.     { 0x9b, 0x42, 0x00, 0x10, 0x4b, 0xdf, 0x53, 0x39 }}
  350.  
  351. class NS_NO_VTABLE nsIWSDLMessage : public nsISupports {
  352.  public: 
  353.  
  354.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IWSDLMESSAGE_IID)
  355.  
  356.   /* readonly attribute AString name; */
  357.   NS_IMETHOD GetName(nsAString & aName) = 0;
  358.  
  359.   /* readonly attribute nsIDOMElement documentation; */
  360.   NS_IMETHOD GetDocumentation(nsIDOMElement * *aDocumentation) = 0;
  361.  
  362.   /* readonly attribute nsIWSDLBinding binding; */
  363.   NS_IMETHOD GetBinding(nsIWSDLBinding * *aBinding) = 0;
  364.  
  365.   /* readonly attribute PRUint32 partCount; */
  366.   NS_IMETHOD GetPartCount(PRUint32 *aPartCount) = 0;
  367.  
  368.   /* nsIWSDLPart getPart (in PRUint32 index); */
  369.   NS_IMETHOD GetPart(PRUint32 index, nsIWSDLPart **_retval) = 0;
  370.  
  371.   /* nsIWSDLPart getPartByName (in AString name); */
  372.   NS_IMETHOD GetPartByName(const nsAString & name, nsIWSDLPart **_retval) = 0;
  373.  
  374. };
  375.  
  376. /* Use this macro when declaring classes that implement this interface. */
  377. #define NS_DECL_NSIWSDLMESSAGE \
  378.   NS_IMETHOD GetName(nsAString & aName); \
  379.   NS_IMETHOD GetDocumentation(nsIDOMElement * *aDocumentation); \
  380.   NS_IMETHOD GetBinding(nsIWSDLBinding * *aBinding); \
  381.   NS_IMETHOD GetPartCount(PRUint32 *aPartCount); \
  382.   NS_IMETHOD GetPart(PRUint32 index, nsIWSDLPart **_retval); \
  383.   NS_IMETHOD GetPartByName(const nsAString & name, nsIWSDLPart **_retval); 
  384.  
  385. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  386. #define NS_FORWARD_NSIWSDLMESSAGE(_to) \
  387.   NS_IMETHOD GetName(nsAString & aName) { return _to GetName(aName); } \
  388.   NS_IMETHOD GetDocumentation(nsIDOMElement * *aDocumentation) { return _to GetDocumentation(aDocumentation); } \
  389.   NS_IMETHOD GetBinding(nsIWSDLBinding * *aBinding) { return _to GetBinding(aBinding); } \
  390.   NS_IMETHOD GetPartCount(PRUint32 *aPartCount) { return _to GetPartCount(aPartCount); } \
  391.   NS_IMETHOD GetPart(PRUint32 index, nsIWSDLPart **_retval) { return _to GetPart(index, _retval); } \
  392.   NS_IMETHOD GetPartByName(const nsAString & name, nsIWSDLPart **_retval) { return _to GetPartByName(name, _retval); } 
  393.  
  394. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  395. #define NS_FORWARD_SAFE_NSIWSDLMESSAGE(_to) \
  396.   NS_IMETHOD GetName(nsAString & aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
  397.   NS_IMETHOD GetDocumentation(nsIDOMElement * *aDocumentation) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDocumentation(aDocumentation); } \
  398.   NS_IMETHOD GetBinding(nsIWSDLBinding * *aBinding) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBinding(aBinding); } \
  399.   NS_IMETHOD GetPartCount(PRUint32 *aPartCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPartCount(aPartCount); } \
  400.   NS_IMETHOD GetPart(PRUint32 index, nsIWSDLPart **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPart(index, _retval); } \
  401.   NS_IMETHOD GetPartByName(const nsAString & name, nsIWSDLPart **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPartByName(name, _retval); } 
  402.  
  403. #if 0
  404. /* Use the code below as a template for the implementation class for this interface. */
  405.  
  406. /* Header file */
  407. class nsWSDLMessage : public nsIWSDLMessage
  408. {
  409. public:
  410.   NS_DECL_ISUPPORTS
  411.   NS_DECL_NSIWSDLMESSAGE
  412.  
  413.   nsWSDLMessage();
  414.  
  415. private:
  416.   ~nsWSDLMessage();
  417.  
  418. protected:
  419.   /* additional members */
  420. };
  421.  
  422. /* Implementation file */
  423. NS_IMPL_ISUPPORTS1(nsWSDLMessage, nsIWSDLMessage)
  424.  
  425. nsWSDLMessage::nsWSDLMessage()
  426. {
  427.   /* member initializers and constructor code */
  428. }
  429.  
  430. nsWSDLMessage::~nsWSDLMessage()
  431. {
  432.   /* destructor code */
  433. }
  434.  
  435. /* readonly attribute AString name; */
  436. NS_IMETHODIMP nsWSDLMessage::GetName(nsAString & aName)
  437. {
  438.     return NS_ERROR_NOT_IMPLEMENTED;
  439. }
  440.  
  441. /* readonly attribute nsIDOMElement documentation; */
  442. NS_IMETHODIMP nsWSDLMessage::GetDocumentation(nsIDOMElement * *aDocumentation)
  443. {
  444.     return NS_ERROR_NOT_IMPLEMENTED;
  445. }
  446.  
  447. /* readonly attribute nsIWSDLBinding binding; */
  448. NS_IMETHODIMP nsWSDLMessage::GetBinding(nsIWSDLBinding * *aBinding)
  449. {
  450.     return NS_ERROR_NOT_IMPLEMENTED;
  451. }
  452.  
  453. /* readonly attribute PRUint32 partCount; */
  454. NS_IMETHODIMP nsWSDLMessage::GetPartCount(PRUint32 *aPartCount)
  455. {
  456.     return NS_ERROR_NOT_IMPLEMENTED;
  457. }
  458.  
  459. /* nsIWSDLPart getPart (in PRUint32 index); */
  460. NS_IMETHODIMP nsWSDLMessage::GetPart(PRUint32 index, nsIWSDLPart **_retval)
  461. {
  462.     return NS_ERROR_NOT_IMPLEMENTED;
  463. }
  464.  
  465. /* nsIWSDLPart getPartByName (in AString name); */
  466. NS_IMETHODIMP nsWSDLMessage::GetPartByName(const nsAString & name, nsIWSDLPart **_retval)
  467. {
  468.     return NS_ERROR_NOT_IMPLEMENTED;
  469. }
  470.  
  471. /* End of implementation class template. */
  472. #endif
  473.  
  474.  
  475. /* starting interface:    nsIWSDLPart */
  476. #define NS_IWSDLPART_IID_STR "0458dac4-65de-11d5-9b42-00104bdf5339"
  477.  
  478. #define NS_IWSDLPART_IID \
  479.   {0x0458dac4, 0x65de, 0x11d5, \
  480.     { 0x9b, 0x42, 0x00, 0x10, 0x4b, 0xdf, 0x53, 0x39 }}
  481.  
  482. class NS_NO_VTABLE nsIWSDLPart : public nsISupports {
  483.  public: 
  484.  
  485.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IWSDLPART_IID)
  486.  
  487.   /* readonly attribute AString name; */
  488.   NS_IMETHOD GetName(nsAString & aName) = 0;
  489.  
  490.   /* readonly attribute nsIWSDLBinding binding; */
  491.   NS_IMETHOD GetBinding(nsIWSDLBinding * *aBinding) = 0;
  492.  
  493.   /* readonly attribute AString type; */
  494.   NS_IMETHOD GetType(nsAString & aType) = 0;
  495.  
  496.   /* readonly attribute AString elementName; */
  497.   NS_IMETHOD GetElementName(nsAString & aElementName) = 0;
  498.  
  499.   /**
  500.    * The schema component that corresponds to this part. If the
  501.    * type attribute is used, this is a nsISchemaType. If the 
  502.    * elementName attribute is used, it is a nsISchemaElement.
  503.    */
  504.   /* readonly attribute nsISchemaComponent schemaComponent; */
  505.   NS_IMETHOD GetSchemaComponent(nsISchemaComponent * *aSchemaComponent) = 0;
  506.  
  507. };
  508.  
  509. /* Use this macro when declaring classes that implement this interface. */
  510. #define NS_DECL_NSIWSDLPART \
  511.   NS_IMETHOD GetName(nsAString & aName); \
  512.   NS_IMETHOD GetBinding(nsIWSDLBinding * *aBinding); \
  513.   NS_IMETHOD GetType(nsAString & aType); \
  514.   NS_IMETHOD GetElementName(nsAString & aElementName); \
  515.   NS_IMETHOD GetSchemaComponent(nsISchemaComponent * *aSchemaComponent); 
  516.  
  517. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  518. #define NS_FORWARD_NSIWSDLPART(_to) \
  519.   NS_IMETHOD GetName(nsAString & aName) { return _to GetName(aName); } \
  520.   NS_IMETHOD GetBinding(nsIWSDLBinding * *aBinding) { return _to GetBinding(aBinding); } \
  521.   NS_IMETHOD GetType(nsAString & aType) { return _to GetType(aType); } \
  522.   NS_IMETHOD GetElementName(nsAString & aElementName) { return _to GetElementName(aElementName); } \
  523.   NS_IMETHOD GetSchemaComponent(nsISchemaComponent * *aSchemaComponent) { return _to GetSchemaComponent(aSchemaComponent); } 
  524.  
  525. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  526. #define NS_FORWARD_SAFE_NSIWSDLPART(_to) \
  527.   NS_IMETHOD GetName(nsAString & aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
  528.   NS_IMETHOD GetBinding(nsIWSDLBinding * *aBinding) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBinding(aBinding); } \
  529.   NS_IMETHOD GetType(nsAString & aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
  530.   NS_IMETHOD GetElementName(nsAString & aElementName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetElementName(aElementName); } \
  531.   NS_IMETHOD GetSchemaComponent(nsISchemaComponent * *aSchemaComponent) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSchemaComponent(aSchemaComponent); } 
  532.  
  533. #if 0
  534. /* Use the code below as a template for the implementation class for this interface. */
  535.  
  536. /* Header file */
  537. class nsWSDLPart : public nsIWSDLPart
  538. {
  539. public:
  540.   NS_DECL_ISUPPORTS
  541.   NS_DECL_NSIWSDLPART
  542.  
  543.   nsWSDLPart();
  544.  
  545. private:
  546.   ~nsWSDLPart();
  547.  
  548. protected:
  549.   /* additional members */
  550. };
  551.  
  552. /* Implementation file */
  553. NS_IMPL_ISUPPORTS1(nsWSDLPart, nsIWSDLPart)
  554.  
  555. nsWSDLPart::nsWSDLPart()
  556. {
  557.   /* member initializers and constructor code */
  558. }
  559.  
  560. nsWSDLPart::~nsWSDLPart()
  561. {
  562.   /* destructor code */
  563. }
  564.  
  565. /* readonly attribute AString name; */
  566. NS_IMETHODIMP nsWSDLPart::GetName(nsAString & aName)
  567. {
  568.     return NS_ERROR_NOT_IMPLEMENTED;
  569. }
  570.  
  571. /* readonly attribute nsIWSDLBinding binding; */
  572. NS_IMETHODIMP nsWSDLPart::GetBinding(nsIWSDLBinding * *aBinding)
  573. {
  574.     return NS_ERROR_NOT_IMPLEMENTED;
  575. }
  576.  
  577. /* readonly attribute AString type; */
  578. NS_IMETHODIMP nsWSDLPart::GetType(nsAString & aType)
  579. {
  580.     return NS_ERROR_NOT_IMPLEMENTED;
  581. }
  582.  
  583. /* readonly attribute AString elementName; */
  584. NS_IMETHODIMP nsWSDLPart::GetElementName(nsAString & aElementName)
  585. {
  586.     return NS_ERROR_NOT_IMPLEMENTED;
  587. }
  588.  
  589. /* readonly attribute nsISchemaComponent schemaComponent; */
  590. NS_IMETHODIMP nsWSDLPart::GetSchemaComponent(nsISchemaComponent * *aSchemaComponent)
  591. {
  592.     return NS_ERROR_NOT_IMPLEMENTED;
  593. }
  594.  
  595. /* End of implementation class template. */
  596. #endif
  597.  
  598.  
  599. /* starting interface:    nsIWSDLBinding */
  600. #define NS_IWSDLBINDING_IID_STR "0458dac0-65de-11d5-9b42-00104bdf5339"
  601.  
  602. #define NS_IWSDLBINDING_IID \
  603.   {0x0458dac0, 0x65de, 0x11d5, \
  604.     { 0x9b, 0x42, 0x00, 0x10, 0x4b, 0xdf, 0x53, 0x39 }}
  605.  
  606. class NS_NO_VTABLE nsIWSDLBinding : public nsISupports {
  607.  public: 
  608.  
  609.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IWSDLBINDING_IID)
  610.  
  611.   /* readonly attribute AString protocol; */
  612.   NS_IMETHOD GetProtocol(nsAString & aProtocol) = 0;
  613.  
  614.   /* readonly attribute nsIDOMElement documentation; */
  615.   NS_IMETHOD GetDocumentation(nsIDOMElement * *aDocumentation) = 0;
  616.  
  617. };
  618.  
  619. /* Use this macro when declaring classes that implement this interface. */
  620. #define NS_DECL_NSIWSDLBINDING \
  621.   NS_IMETHOD GetProtocol(nsAString & aProtocol); \
  622.   NS_IMETHOD GetDocumentation(nsIDOMElement * *aDocumentation); 
  623.  
  624. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  625. #define NS_FORWARD_NSIWSDLBINDING(_to) \
  626.   NS_IMETHOD GetProtocol(nsAString & aProtocol) { return _to GetProtocol(aProtocol); } \
  627.   NS_IMETHOD GetDocumentation(nsIDOMElement * *aDocumentation) { return _to GetDocumentation(aDocumentation); } 
  628.  
  629. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  630. #define NS_FORWARD_SAFE_NSIWSDLBINDING(_to) \
  631.   NS_IMETHOD GetProtocol(nsAString & aProtocol) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProtocol(aProtocol); } \
  632.   NS_IMETHOD GetDocumentation(nsIDOMElement * *aDocumentation) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDocumentation(aDocumentation); } 
  633.  
  634. #if 0
  635. /* Use the code below as a template for the implementation class for this interface. */
  636.  
  637. /* Header file */
  638. class nsWSDLBinding : public nsIWSDLBinding
  639. {
  640. public:
  641.   NS_DECL_ISUPPORTS
  642.   NS_DECL_NSIWSDLBINDING
  643.  
  644.   nsWSDLBinding();
  645.  
  646. private:
  647.   ~nsWSDLBinding();
  648.  
  649. protected:
  650.   /* additional members */
  651. };
  652.  
  653. /* Implementation file */
  654. NS_IMPL_ISUPPORTS1(nsWSDLBinding, nsIWSDLBinding)
  655.  
  656. nsWSDLBinding::nsWSDLBinding()
  657. {
  658.   /* member initializers and constructor code */
  659. }
  660.  
  661. nsWSDLBinding::~nsWSDLBinding()
  662. {
  663.   /* destructor code */
  664. }
  665.  
  666. /* readonly attribute AString protocol; */
  667. NS_IMETHODIMP nsWSDLBinding::GetProtocol(nsAString & aProtocol)
  668. {
  669.     return NS_ERROR_NOT_IMPLEMENTED;
  670. }
  671.  
  672. /* readonly attribute nsIDOMElement documentation; */
  673. NS_IMETHODIMP nsWSDLBinding::GetDocumentation(nsIDOMElement * *aDocumentation)
  674. {
  675.     return NS_ERROR_NOT_IMPLEMENTED;
  676. }
  677.  
  678. /* End of implementation class template. */
  679. #endif
  680.  
  681.  
  682. #endif /* __gen_nsIWSDL_h__ */
  683.